<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            font-size: 12px;
        }
        table{
            width: 600px;
            margin: 0 auto;
        }
        td{
            border-bottom: 1px solid salmon;
        }
        tr td{
            height: 30px;
            text-align: center;
        }
    </style>
</head>
<body>
<table>
    <tr>
        <td>编号</td>
        <td>名称</td>
        <td>年龄</td>
        <td>出生日期</td>
    </tr>
    <c:forEach items="${pageUtil.datas}" var="emp">
        <tr>
            <td>${emp.eid}</td>
            <td>${emp.ename}</td>
            <td>${emp.eage}</td>
            <td>
                <fmt:formatDate value="${emp.birthday}" pattern="yyyy-MM-dd"></fmt:formatDate>
            </td>
        </tr>
    </c:forEach>
    <tr>
        <td colspan="4">
            <a href="/emp/findall?pageNo=1">首页</a>
            <a href="/emp/findall?pageNo=${pageUtil.pageNo-1}">上一页</a>
            <a href="/emp/findall?pageNo=${pageUtil.pageNo+1}">下一页</a>
            <a href="/emp/findall?pageNo=${pageUtil.pageAll}">末页</a>

            【${pageUtil.pageNo} / ${pageUtil.pageAll} / ${pageUtil.count}】
        </td>
    </tr>
</table>
</body>
</html>
